package com.yupi.yupao.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yupi.yupao.model.domain.Message;
import com.yupi.yupao.model.domain.User;

import java.util.List;

/**
 *发送信息相关方法
 */
public interface MessageService extends IService<Message> {
    // 新增消息
   boolean insertMessage(Message message);

    //根据接收人id和发送人id，拼接成会话id，然后再根据会话id查询message
    List<Message> getMessageByCid(int to_id, User loginUser);

}
